package com.cium.aqie.objectOriented.conflict

/**
 * @Function:
 * @Author: aqie
 * @Date: 2019/8/31 8:45
 */
class D(var y: Int = 0): A(), B, C{

    override fun x(): Int {
        println("call x(): Int in D")
        if(y > 0){
            return y
        }else if(y < -200){
            return super<C>.x()
        }else if(y < -100){
            return super<B>.x()
        }else{
            return super<A>.x()
        }
    }
}